package com.jpa.pojo;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/*
 * 仅用于自动登录（记住密码）建表，spring security提供的建表语句第二次启动会报错
 * */
@Setter
@Getter
@ToString
@Entity
@Table(name = "persistent_logins")
public class PersistentLogins {
    @Id
    private String series;
    private String username;
    private String token;
    private Date last_used;
}
